import type { AsyncDataResult } from '../define/types'
import type INative from '../define/native'
import knex from '../connection'

class Native implements INative {
  async raw(sql: string, params: any = []): AsyncDataResult {
    return await knex.raw(sql, params)
  }
}

export default new Native()